﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations.Schema;
using System.Text;

namespace MQ.Core.Entity.System
{
    public class LogEntity
    {
        [Column("ID")]
        public long Id { set; get; }
        [Column("CATEGORY")]
        public int Category { set; get; }
        [Column("LEVEL")]
        public string Level { set; get; }
        [Column("IP")]
        public string Ip { set; get; }
        [Column("URL")]
        public string Url { set; get; }
        [Column("MSG")]
        public string Msg { set; get; }
        [Column("EXCEPTION")]
        public string Exception { set; get; }
        [Column("ADDUSER")]
        public string AddUser { set; get; }
        [Column("ADDTIME")]
        public DateTime AddTime { get { return DateTime.Now; } }
        [NotMapped]
        public string AddUserName { set; get; }
    }
}
